<demo>使用函数打开</demo>

<template>
    <Button @click="showDialog">show</Button>
</template>

<script setup lang="ts">
import Button from '../lib/Button.vue';
import { openDialog } from '../lib/openDialog';

const showDialog = () => {
    openDialog({title:"示例标题",content:"你好",
    ok(){
        console.log('ok');
    },
    cancel(){
        console.log('cancel');
    }
    })
}
</script>

<style scoped>

</style>